package com.mindao.app.ued.model;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.mindao.app.common.spring.model.BaseModel;

/**
/* 版权所有： 广州敏道科技有限公司
/*
/* 功能描述： 活动奖品配置
/*
/* 创 建 人：李国才
/* 创建时间：2016年6月25日 上午10:06:38 	
 **/

@Entity
@Table(name = "ued_event_prize")
public class EventPrize extends BaseModel{
	private String grade;//奖品等级名称
	//private Integer sortnob; //排序号
	private String name;//奖品名称
	private BigDecimal hitRatio; //中奖概率
	 
	private BigDecimal money; //中奖奖金
	private Event event;
	private String remark;//说明
	 
	private String image;//奖品图片
	private Long sortNob; //排序号
	
	public String getGrade() {
		return grade;
	}
	public void setGrade(String grade) {
		this.grade = grade;
	}
//	public Integer getSortnob() {
//		return sortnob;
//	}
//	public void setSortnob(Integer sortnob) {
//		this.sortnob = sortnob;
//	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public BigDecimal getHitRatio() {
		return hitRatio;
	}
	public void setHitRatio(BigDecimal hitRatio) {
		this.hitRatio = hitRatio;
	}
	 
	@ManyToOne(fetch = FetchType.EAGER)  
	@JoinColumn(name = "event_id", nullable = true)
	public Event getEvent() {
		return event;
	}

	public void setEvent(Event event) {
		this.event = event;
	}
	public BigDecimal getMoney() {
		return money;
	}
	public void setMoney(BigDecimal money) {
		this.money = money;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public String getImage() {
		return image;
	}
	public void setImage(String image) {
		this.image = image;
	}
	public Long getSortNob() {
		return sortNob;
	}
	public void setSortNob(Long sortNob) {
		this.sortNob = sortNob;
	}
	
	
	
}
